package com.atguigu.gmall.feignclients.product;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.weball.CategoryVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;

import java.util.List;

/**
 * @ClassName CategoryFeginClient
 * @Description TODO
 * @Author king
 * @Date 2022/11/5 18:37
 * @Version 1.0
 */
@FeignClient("service-product") //1,以后这个接口下的所有方法都是给 service-product 发送请求
//
public interface CategoryFeginClient {

    @GetMapping("/api/inner/rpc/product/category/tree")
    Result<List<CategoryVO>> getCategoryTree();
}
